try:
    num = int(input("请输入一个整数"))
    result = 8 / num
    print(result)
except Exception as e:
    print(f"捕获的异常类型有:{e}")
    